package com.gimi.cloud.bbp.manage.config;

import com.alibaba.fastjson.support.config.FastJsonConfig;
import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;

/**
 * fastJson消息格式化扩展
 * @author wbj
 * @version 1.0
 * @Description
 * @create 2018-02-11
 **/
public class FastJsonHttpMessageConverterEx extends FastJsonHttpMessageConverter{
    public FastJsonHttpMessageConverterEx() {
        FastJsonConfig fastJsonConfig = new FastJsonConfig();
        //正常转换 null 值
        //fastJsonConfig.setSerializerFeatures(SerializerFeature.WriteMapNullValue);
        this.setFastJsonConfig(fastJsonConfig);
    }
    @Override
    protected boolean supports(Class<?> clazz) {
        return super.supports(clazz);
    }
}
